import { getCurrentInstance } from 'vue';

function getGlobalVariable(key) {
  const { appContext } = getCurrentInstance();
  return appContext.config.globalProperties[key];
}

export default getGlobalVariable;
